package collection;

import java.util.HashSet;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        Set<Person> set = new HashSet<Person>();

        set.add(new Person("张三",12));
        set.add(new Person("李四",13));

        for (Person p : set){
            System.out.println(p);
        }
    }
}
